Skip to content

Fix incorrect "not found" error check.#7363

Merged
Sovietaced merged 1 commit into
flyteorg:masterfrom
NullHypothesis:fix-broken-error-check
May 15, 2026
Merged

Fix incorrect "not found" error check.#7363
Sovietaced merged 1 commit into
flyteorg:masterfrom
NullHypothesis:fix-broken-error-check

Conversation

@NullHypothesis
Copy link
Copy Markdown

Why are the changes needed?

So far, the following command would fail:

$ flytectl get workflow-execution-config -p PROJECT -d DOMAIN --attrFile FILE --gen
Error: attribute not found

The attribute file is not written.

What changes were proposed in this pull request?

The above command failed because the command line parsing code would check the error returned by FetchAndUnDecorateMatchableAttr for a gRPC "not found" error but AdminFetcherExtClient maps this gRPC code to an internal NotFoundError type: It is this error that we need to check for.

This PR adapts the error check, which unbreaks attribute file generation. (While at it, I also added a missing '\n' to a log message.)

How was this patch tested?

I ran the above command again. It now works.

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

@github-actions github-actions Bot added the flyte label May 11, 2026
So far, the command line parsing code would check the error returned by
`FetchAndUnDecorateMatchableAttr` for a gRPC "not found" error but
`AdminFetcherExtClient` maps this gRPC code to an internal
`NotFoundError` type: It is this error that we need to check for.

This PR adapts the error check, which unbreaks config file generation.
(While at it, I also added a missing '\n' to a log message.)

Signed-off-by: Philipp Winter <[email protected]>
@Sovietaced Sovietaced force-pushed the fix-broken-error-check branch from b2fd0ea to 4e9abfd Compare May 15, 2026 03:27
@Sovietaced
Copy link
Copy Markdown
Member

I checked the code and this seems sound to me.

@Sovietaced Sovietaced enabled auto-merge (squash) May 15, 2026 03:43
@Sovietaced Sovietaced merged commit 7c719b8 into flyteorg:master May 15, 2026
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants